const fillStyle = (node, style) => {
  if(!(node instanceof Node)) {
    console.error(`fill style: node-${node} is not a Node`);
    return;
  }

  if(typeof style !== 'object') {
    console.error(`fill style: style-${style} is not an object`);
    return;
  }

  Object.keys(style).forEach(key => {
    node.style[key] = style[key];
  })
}

export default fillStyle;